package com.liuxing.javaSpringBoot.modules.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by IntelliJ IDEA.
 * @File CommonController.java
 * @Auth liuxing
 * @Date 2021/8/25 08:54
 * @Email liuxing997@foxmail.com
 */
@Controller
@RequestMapping("/common")
public class CommonController {

    @GetMapping("/dashboard")
    public String dashboardPage(){
        return "index";
    }

    /**
     * 127.0.0.1/common/403  ---get
     * @return indexSimple
     */
    @GetMapping("/403")
    public String errorPageFor403(){
        return "indexSimple";
    }

    /**
     * 127.0.0.1/common/404  ---get
     * @return indexSimple
     */
    @GetMapping("/404")
    public String errorPageFor404(){
        return "indexSimple";
    }

    /**
     * 127.0.0.1/common/500  ---get
     * @return indexSimple
     */
    @GetMapping("/500")
    public String errorPageFor500(){
        return "indexSimple";
    }

}
